package com.luoye.sf.service.impl;

import com.luoye.sf.client.SchedualServiceHi;
import com.luoye.sf.service.IHelloService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;

/**
 * Created by Administrator on 2018/5/31.
 */
@Service
public class HelloServiceImpl implements IHelloService{
    private static Logger logger= LoggerFactory.getLogger(HelloServiceImpl.class);

    @Autowired
    SchedualServiceHi schedualServiceHi;

    public String say(String name) {
        String word=schedualServiceHi.sayHiFromClientOne(name);
        logger.info("the word is:"+word);
        return word;
    }
}
